package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 订单退款记录表
 * </p>
 *
 * @author xiaoky
 * @since 2019-05-11
 */
@TableName("order_refund_log")
public class OrderRefundLog extends Model<OrderRefundLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单所属店铺
     */
    private Integer bid;
    
    /**
     * 用户id
     */
    private Integer cid;

    /**
     * 订单号
     */
    private String orderCode;

    /**
     * 订单详情id
     */
    private Integer orderDetailId;

    /**
     * 退款编号 与订单详情退款编号对应
     */
    private String refundCode;

    /**
     * 退款金额
     */
    private BigDecimal refundMoney;

    /**
     * 退款积分
     */
    private BigDecimal refundPoint;

    /**
     * 1原路返还  2人工处理
     */
    private Integer refundType;

    /**
     * 退款方式  1：仅退款，2退款退货
     */
    private Integer applyType;

    /**
     * 快递公司编号
     */
    private String expCode;

    /**
     * 快递公司名称
     */
    private String expName;

    /**
     * 快递单号
     */
    private String expNo;

    /**
     * 退款申请时间
     */
    private Date createTime;

    /**
     * 退款状态   1退款申请中  2退款成功  3退款驳回  4退款取消
     */
    private Integer status;

    /**
     * 退款审核人
     */
    private Integer checkId;
    /**
     * 退款审核时间
     */
    private Date checkTime;

    /**
     * 取消退款时间
     */
    private Date cancelTime;

    /**
     * 退款原因
     */
    private String refundReason;
    
    /**
     * 退款申请理由
     */
    private String refundRemark;

    /**
     * 图片url链接逗号分隔，最多5张图
     */
    private String refundImgs;

    /**
     * 驳回理由
     */
    private String rejectRemark;
    
    /**
     * 支付类型
     */
    private Integer payType;
    
    /**
     * 拒绝原因
     */
    private String rejectReason;
    
    /**
     * 取消原因
     */
    private String cancelReason;
    
    /**
     * 退款操作对应昵称
     */
    @TableField(exist = false)
    private String CNickName;
    
    /**
     * 退款操作对应头像
     */
    @TableField(exist = false)
    private String CHeadurl;
    
    /**
     * 退款操作处理时间
     */
    @TableField(exist = false)
    private Date handleTime;
    
    /**
     * 退款类型名称
     */
    @TableField(exist = false)
    private String applyTypeName;
    
    @TableField(exist = false)
    private List<String> refundImgList;
    
    
    @TableField(exist = false)
    private String payTypeName;
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getBid() {
		return bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}

	public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }
    public Integer getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(Integer orderDetailId) {
        this.orderDetailId = orderDetailId;
    }
    public String getRefundCode() {
        return refundCode;
    }

    public void setRefundCode(String refundCode) {
        this.refundCode = refundCode;
    }
    public BigDecimal getRefundMoney() {
        return refundMoney;
    }

    public void setRefundMoney(BigDecimal refundMoney) {
        this.refundMoney = refundMoney;
    }
    public BigDecimal getRefundPoint() {
        return refundPoint;
    }

    public void setRefundPoint(BigDecimal refundPoint) {
        this.refundPoint = refundPoint;
    }
    public Integer getRefundType() {
        return refundType;
    }

    public void setRefundType(Integer refundType) {
        this.refundType = refundType;
    }
    public Integer getApplyType() {
        return applyType;
    }

    public void setApplyType(Integer applyType) {
        this.applyType = applyType;
    }
    public String getExpCode() {
        return expCode;
    }

    public void setExpCode(String expCode) {
        this.expCode = expCode;
    }
    public String getExpName() {
        return expName;
    }

    public void setExpName(String expName) {
        this.expName = expName;
    }
    public String getExpNo() {
        return expNo;
    }

    public void setExpNo(String expNo) {
        this.expNo = expNo;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public Integer getCheckId() {
		return checkId;
	}

	public void setCheckId(Integer checkId) {
		this.checkId = checkId;
	}

	public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }
    public Date getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(Date cancelTime) {
        this.cancelTime = cancelTime;
    }
    public String getRefundReason() {
		return refundReason;
	}

	public void setRefundReason(String refundReason) {
		this.refundReason = refundReason;
	}

	public String getRefundRemark() {
        return refundRemark;
    }

    public void setRefundRemark(String refundRemark) {
        this.refundRemark = refundRemark;
    }
    public String getRefundImgs() {
        return refundImgs;
    }

    public void setRefundImgs(String refundImgs) {
        this.refundImgs = refundImgs;
    }
    public String getRejectRemark() {
        return rejectRemark;
    }

    public void setRejectRemark(String rejectRemark) {
        this.rejectRemark = rejectRemark;
    }

	public String getCNickName() {
		return CNickName;
	}

	public void setCNickName(String cNickName) {
		CNickName = cNickName;
	}

	public String getCHeadurl() {
		return CHeadurl;
	}

	public void setCHeadurl(String cHeadurl) {
		CHeadurl = cHeadurl;
	}

	public Date getHandleTime() {
		return handleTime;
	}

	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}

	public List<String> getRefundImgList() {
		return refundImgList;
	}

	public void setRefundImgList(List<String> refundImgList) {
		this.refundImgList = refundImgList;
	}

	public String getApplyTypeName() {
		return applyTypeName;
	}

	public void setApplyTypeName(String applyTypeName) {
		this.applyTypeName = applyTypeName;
	}

	public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	public String getCancelReason() {
		return cancelReason;
	}

	public void setCancelReason(String cancelReason) {
		this.cancelReason = cancelReason;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public String getPayTypeName() {
		return payTypeName;
	}

	public void setPayTypeName(String payTypeName) {
		this.payTypeName = payTypeName;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderRefundLog{" +
        "id=" + id +
        ", cid=" + cid +
        ", orderCode=" + orderCode +
        ", orderDetailId=" + orderDetailId +
        ", refundCode=" + refundCode +
        ", refundMoney=" + refundMoney +
        ", refundPoint=" + refundPoint +
        ", refundType=" + refundType +
        ", applyType=" + applyType +
        ", expCode=" + expCode +
        ", expName=" + expName +
        ", expNo=" + expNo +
        ", createTime=" + createTime +
        ", status=" + status +
        ", checkTime=" + checkTime +
        ", cancelTime=" + cancelTime +
        ", refundRemark=" + refundRemark +
        ", refundImgs=" + refundImgs +
        ", rejectRemark=" + rejectRemark +
        "}";
    }
}
